<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #box{
            width: 400px;
            height: 400px;
        
        /* linear-gradient (颜色，颜色,颜色,颜色) 线性渐变 */
        /* background:linerar-gradient(to left,green,yellow,blue) */
        /* to right 从左到右 */
           /* to left 从右到左 */
           background:linear-gradient(to left,#024003,hsl(60, 100%, 50%),#0000ff)
        }
        #move{
            width: 600px;
            height: 600px;
            /* 径向渐变 */
            background: radial-gradient(green,yellow,red);
        }
    </style>
<body>
    <div id="box">

    </div>
    <div id="move"></div>
</body>
</html>